#type vertex
#version 330 core
layout (location = 0) in vec2 aPos;
layout (location = 1) in vec3 aCol;

uniform vec2 _window_size;

out vec3 FragColor;

void main() {
    vec2 NDC_Pos = vec2(2.0 * aPos.x * (1.0 / _window_size.x) - 1.0, 
        -2.0 * aPos.y * (1.0 / _window_size.y) + 1.0);;
    gl_Position = vec4(NDC_Pos, 0.0, 1.0);
    FragColor = aCol;
}

#type fragment
#version 330 core

in vec3 FragColor;

out vec4 FragOut;

void main() {
    FragOut = vec4(FragColor, 1.0);
}
